﻿using Domain.Entity.System_numbering;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_numbering
{
    public class BHConfiger : IEntityTypeConfiguration<BH>
    {
        public void Configure(EntityTypeBuilder<BH> builder)
        {
            builder.ToTable(nameof(BH));
            builder.HasKey(e => e.En_code);
            builder.Property(e => e.En_code).HasColumnType("bigint");
            builder.Property(e => e.En_form).HasColumnType("varchar(64)");
            builder.Property(e => e.En_prefix).HasColumnType("varchar(64)");
            builder.Property(e => e.En_time).HasColumnType("varchar(64)");
            builder.Property(e => e.En_num).HasColumnType("varchar(64)");
            builder.Property(e => e.En_step).HasColumnType("varchar(64)");
            builder.Property(e => e.En_rules).HasColumnType("varchar(64)");
            builder.Property(e => e.Create_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Create_time).HasColumnType("DateTime");
            builder.Property(e => e.Is_del).HasColumnType("char(4)");
            builder.Property(e => e.Max_num).HasColumnType("int");
            builder.Property(e => e.Last_data).HasColumnType("DateTime");
            builder.Property(e => e.SequenceNumber).HasColumnType("int");
        }
    }
}
